# == Schema Information
# Schema version: 8
#
# Table name: comments
#
#  id               :integer(11)   not null, primary key
#  title            :string(50)    default("")
#  comment          :text
#  created_at       :datetime      not null
#  commentable_id   :integer(11)   default(0), not null
#  commentable_type :string(15)    default(""), not null
#  user_id          :integer(11)   default(0), not null
#

class Comment < ActiveRecord::Base
  belongs_to :commentable, :polymorphic => true

  belongs_to :user

  validates_presence_of :comment, :commentable_id, :commentable_type
end
